﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AyFrame.DbEntity.ColumnAttributes;

namespace AyFrame.DbEntity.Models
{
    [SugarTable("BS_Area")]
    public class Area : BaseEntity
    {
        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(50)]
        public string Ename { get; set; }

        [StringLength(50)]
        public string ParentId { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Area> Children { get; set; }
    }
}
